home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / snippets / rand.cfm < prev    next >
Encoding:
Text File  |  2001-06-13  |  387 b   |  25 lines

  1. <!--- This example shows the use of Rand() --->
  2.  
  3. <HTML>
  4.  
  5. <HEAD>
  6. <TITLE>
  7. Rand Example
  8. </TITLE>
  9. </HEAD>
  10.  
  11. <BASEFONT FACE="Arial, Helvetica" SIZE=2>
  12. <BODY  bgcolor="#FFFFD5">
  13.  
  14. <H3>Rand Example</H3>
  15.  
  16. <P>Rand() returns a random number in the range 0 to 1.
  17.  
  18. <P>Rand() returned: <CFOUTPUT>#Rand()#</CFOUTPUT>
  19.  
  20. <P><a href="rand.cfm">Try again</A>
  21.  
  22. </BODY>
  23.  
  24. </HTML>       
  25.